package com.cz.register;

public class test13 {
    public static void main(String[] args) {
        int[] arr = new int[3];
        System.out.println(arr);
        arr[0] = 10;
        arr[1] = 20;
        arr[2] = 30;

        int[] arr1 = arr;
        arr1[0] = 100;
        // arr1和arr指向同一个内存，所以修改的是arr中的数据。
        System.out.println(arr1);
        System.out.println(arr[0]);
        System.out.println(arr1[0]);

    }
}
